import { REFRESH_TOP_VIDEOS } from '../constant/action-type'

const initState = [{
  id: 4,
  title: 'Java集合练习讲解',
  isPublic: true,
  username: 'acey',
  coverUrl: '',
  createTime: '2019-05-06'
}]

export default (state = initState, action) => {
  switch (action.type) {
    case REFRESH_TOP_VIDEOS :
      return action.data
    default:
      return state
  }
}
